//
//  LXHomeListCell.m
//  EPA
//
//  Created by lanou3g on 16/4/20.
//  Copyright © 2016年 LXK. All rights reserved.
//

#import "LXHomeListCell.h"

@interface LXHomeListCell ()
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;

@property (strong, nonatomic) IBOutlet UIImageView *tietleImageView;

@property (strong, nonatomic) IBOutlet UILabel *contentLabel;


@end

@implementation LXHomeListCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)layoutSubviews {
    self.titleLabel.text = self.model.title;
    self.contentLabel.text = self.model.content;
    self.tietleImageView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:self.model.coverimg]]];
}

@end
